package com.zzyl.mapper;

import com.zzyl.entity.AlertRule;
import com.zzyl.vo.AlertRuleVo;
import org.apache.ibatis.annotations.Mapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlertRuleMapper {
    void create(AlertRule alertRule);

    Page<AlertRuleVo> getPage(@Param("alertRuleName") String alertRuleName, @Param("productKey") String productKey, @Param("functionName") String functionName);

    AlertRule read(Long id);

    void update(AlertRule alertRule);

    void delete(Long id);

    void updateStatus(Long id, Integer status);

    List<AlertRule> selectAll(String FunctionId, String productKey, String IotId);
}
